package com.itmuch.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * Hystrix Dashboard的使用与常见问题总结
 * 	  0.在maven添加配置包	
 *    1.在启动类添加注解@EnableHystrixDashboard
 * 	  2.网址：http://localhost:8030/hystrix
 * 	  3.启动三个项目：eureka,user,microservice-consumer-movie-ribbon-with-hystrix(eureka的保护应用)，本项目也要启动
 * 	  4.访问microservice-consumer-movie-ribbon-with-hystrix的requestMapping的地址
 * 	  5.访问dashboard的页面:http://localhost:8030/hystrix
 * 	  6.在dashboard页面访问地址：http://localhost:8010/hystrix.stream,其他随意填
 * 	  7.不断点击访问:http://localhost:8010/movie/1
 */


@EnableHystrixDashboard
@SpringBootApplication
public class MicroserviceEurekaHystrixDashboardApplication {
	
	public static void main(String[] args) {
		SpringApplication.run(MicroserviceEurekaHystrixDashboardApplication.class, args);
		
	}
	
	
}
